<?php
/**
 * Date: 11/12/12
 * Time: 7:33 AM
 * User: Amitav Roy
 */
class Category_m extends CI_Model{
	// Parent category table
	protected $parent_cat_table = 'category';

	// Term table
	protected $term_table = 'term';

	function __construct() {
		// Loading the parent construct.
		parent::__construct();
	}

	/**
	 * This is the base query.
	 * Protected function, should be called using the getter.
	 */
	protected function base_category_tree() {

	}

	/**
	 * Getter function for base query to get the tree.
	 */
	public function get_base_category_tree() {
		return $this->base_category_tree();
	}
	
	public function save_sub_category($data) {
		$this->db->insert($this->term_table, $data);
	}
}

/* End of file category_m.php */
/* Location: ./application/controllers/category_m.php */